import axios from "axios"

const instance = axios.create({
    // baseURL:"http://192.168.126.128:8080",
    baseURL:"http://localhost:8080",
    timeout:300000
})

instance.interceptors.request.use(
    function(config){
        return config;
    },
    function(error){
        return Promise.reject(error)
    })
    instance.interceptors.response.use(
        function(response){
            return response.data;
        },
        function(error){
            return Promise.reject(error)
        })
        
    
 
    export default instance